package com.dds.system.mapper.union;

import java.util.List;
import java.util.Map;

import com.dds.system.domain.union.UnionShopOrderProfit;
import org.apache.ibatis.annotations.Param;

/**
 * 商户(线下)订单分润Mapper接口
 * 
 * @author gaolianjie
 * @date 2021-04-01
 */
public interface UnionShopOrderProfitMapper 
{
    /**
     * 查询商户(线下)订单分润
     * 
     * @param id 商户(线下)订单分润ID
     * @return 商户(线下)订单分润
     */
    public UnionShopOrderProfit selectUnionShopOrderProfitById(Integer id);

    /**
     * 查询商户(线下)订单分润列表
     * 
     * @param unionShopOrderProfit 商户(线下)订单分润
     * @return 商户(线下)订单分润集合
     */
    public List<UnionShopOrderProfit> selectUnionShopOrderProfitList(UnionShopOrderProfit unionShopOrderProfit);

    /**
     * 新增商户(线下)订单分润
     * 
     * @param unionShopOrderProfit 商户(线下)订单分润
     * @return 结果
     */
    public int insertUnionShopOrderProfit(UnionShopOrderProfit unionShopOrderProfit);

    /**
     * 修改商户(线下)订单分润
     * 
     * @param unionShopOrderProfit 商户(线下)订单分润
     * @return 结果
     */
    public int updateUnionShopOrderProfit(UnionShopOrderProfit unionShopOrderProfit);

    /**
     * 删除商户(线下)订单分润
     * 
     * @param id 商户(线下)订单分润ID
     * @return 结果
     */
    public int deleteUnionShopOrderProfitById(Integer id);

    /**
     * 批量删除商户(线下)订单分润
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteUnionShopOrderProfitByIds(Integer[] ids);

    Map<String, Object> getData(
            @Param("orderType") String orderType,
            @Param("startTime") String startTime,
            @Param("endTime") String endTime
    );
}
